import request from '@/utils/request';

export function fetchEmployee(params) {
    return request('/api/gmstask/v1/task/task/getusertask', {
        method: 'post',
        data: params
    });
}

export function fetchDepartment(params) {
    return request('/api/gmstask/v1/gms/overview/department/list', {
        method: 'post',
        data: params
    });
}

export function fetchDepartmentTree(params) {
    return request('/api/gmstask/v1/task/task/gettree', {
        params
    });
}

export function fetchOverview(params) {
    return request('/api/gmstask/v1/gms/overview/department', {
        method: 'post',
        data: params
    });
}
